package com.koron.plan.web.patrolplan.bean.vo;

import com.koron.common.task.web.entity.CronTask;
import com.koron.plan.web.patrolplan.bean.entity.PatrolPlanWorkerBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.util.List;

/**
 * @author twcao
 * @title: PatrolPlanVO
 * @projectName GDH_EAM_V2
 * @description: 巡视计划
 * @date 2021/10/279:32
 */
@Data
@ApiModel("巡视计划")
public class PatrolPlanDetailVO extends PatrolPlanVO {

    @ApiModelProperty("巡视计划和巡视点关系")
    private List<PatrolPlanPointRelVO> rels;

    @Valid
    @ApiModelProperty("巡视计划-巡视人员")
    private List<PatrolPlanWorkerBean> workers;

    @ApiModelProperty("定时任务表达式")
    private CronTask cronTask;
}
